{extend name="public/base"/}
{block name="body"}
<div class="main-box clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>{$meta_title}</h2>
		</div>
	</header>
	<div class="main-box-body clearfix">
		<div class="row">
			<form method="get">
				<div class="col-sm-12 col-md-4 col-lg-3">
					
					<div class="input-group">
						<input type="text" class="form-control" name="startdata" id="startdata" value="{$startdata|date='Y-m-d',###}" placeholder="">
						<span class="input-group-addon"><i class="fa fa-th"></i></span>
					</div>
				</div>
				<div class="col-sm-12 col-md-4 col-lg-3">
					<div class="input-group">
						<input type="text" class="form-control" name="enddata" id="enddata" value="{$enddata|date='Y-m-d',###}" placeholder="">
						<span class="input-group-addon"><i class="fa fa-th"></i></span>
					</div>
				</div>
				
				<div class="col-sm-12 col-md-4">
					<button class="btn btn-primary" type="submit">搜索</button>
				</div>
			</form>
		</div>
		<div class="table-responsive clearfix">

			<div class="table-responsive clearfix">
				<table class="table table-hover">
					<thead>
						<tr>
							<th>提交时间</th>
							<th>提现金额</th>
							<th>状态</th>
							<th>备注</th>
							{if $Think.session.user_auth.group != 3}
							<th>操作</th>
							{/if}
						</tr>
					</thead>
					<tbody>
						{if condition="empty($list)"}
							<tr>
								<td colspan="4" align="center">暂无数据！</td>
							</tr>
						{else/}
							{volist name="list" id="item"}
								<tr>
									<td>{$item.create_time|date='Y-m-d',###}</td>
									<td>{$item.money}</td>
									<td>{$item['status']==1?"已打款":"未打款"}</td>
									<td>{$item.remarks}</td>
									{if $Think.session.user_auth.group != 3}
										<td><a href="{:url('cashstatus',array('id'=>$item.id))}" class="ajax-get">确认打款</a></td>
									{/if}
								</tr>
							{/volist}
						{/if}
					</tbody>
				</table>
			</div>
			{$page}
		</div>
	</div>
</div>
<!-- datepicker statr -->
<link href="/public/plugs/datepicker/css/foundation-datepicker.min.css" rel="stylesheet" type="text/css">
<script src="/public/plugs/datepicker/js/foundation-datepicker.js"></script>
<script src="/public/plugs/datepicker/js/foundation-datepicker.zh-CN.js"></script>
<script>
$('#startdata').fdatepicker({
	format: 'yyyy-mm-dd'
});
$('#enddata').fdatepicker({
	format: 'yyyy-mm-dd'
});
</script>

{/block}